package fit.deni.hibernate.interfaces;

import java.util.Collection;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import fit.deni.beans.DVD;

public interface DVDService {
	
	public DVD getDVDById(int id);
	
	public DVD getDVDbyTitle(String title);

	public Collection<DVD> getAll();

	public Collection<DVD> getNewDVDs();

	public Collection<DVD> getPopularDVDs();
	
	public Collection<DVD> getDVDByGenre(String genre);
	
	public Collection<DVD> getDVDsFromActor(int glumacId);

	@CommitAfter
	public void addDVD(DVD dvd);
	
	@CommitAfter
	public void deleteDVD(DVD dvd);

}